/* 库存管理-表头管理api */

import { ajaxService } from '@/utils/request';

const env = import.meta.env;
let baseURL = env.VITE_INVENTORY_URL;

// 获取表头
export function getHeader(params: any) {
  return ajaxService({
    url: '/warehouse/entry/header/get',
    method: 'get',
    baseURL,
    params,
  });
}

// 新增或者编辑表头
export function PostHeader(data: any) {
  return ajaxService({
    url: '/warehouse/entry/header/edit',
    method: 'put',
    baseURL,
    data,
  });
}
